﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;
namespace BLL
{
    public class quanXianBll
    {
        DAL.quanXianDal quandal = new quanXianDal();
         /// <summary>
        /// 读取所有权限
        /// </summary>
        /// <returns></returns>
        public List<Models.quanXian> showQuan()
        {
            return quandal.showQuan();
        }
         /// <summary>
        /// 权限查询
        /// </summary>
        /// <returns></returns>
        public List<Models.quanXian> chaQuan(int roleid)
        {
            return quandal.chaQuan(roleid);
        }
             /// <summary>
        /// 批量删除权限
        /// </summary>
        /// <param name="roleid"></param>
        /// <returns></returns>
        public int delQuan(string roleid)
        {
            return quandal.delQuan(roleid);
        }
           /// <summary>
        /// 批量添加权限
        /// </summary>
        /// <param name="roleid"></param>
        /// <param name="qxid"></param>
        /// <returns></returns>
        public int addQuan(int roleid, string qxid)
        {
            return quandal.addQuan(roleid,qxid);
        }
    }
}
